package com.wang.designpattern.factory.simplefactory.pizzastore.store;

import com.wang.designpattern.factory.simplefactory.pizzastore.pizza.Pizza;

public class PizzaStore {

    public static void main(String[] args) {
        OrderPizza orderPizza = new OrderPizza();
        orderPizza.setSimpleFactory(new SimpleFactory());
        do {
            Pizza pizza = orderPizza.orderPizza();
            if (null == pizza) {
                break;
            }
        } while (true);
    }

}
